Release 10.1A: OpenEdge Development:
Progress 4GL Reference
RAW statement
Writes bytes to a field.
Syntax
fieldThe field in which you want to store
expression.positionAn integer expression that indicates the position in
fieldwhere you want to storeexpression.The default forpositionis 1.lengthAn integer expression that indicates the number of positions you want to replace in
field. If you do not use thelengthargument, RAW putsexpressionintofieldfrompositionto end. Progress treats variable-length fields and fixed-length fields differently. See the Notes section for more information.expressionA function or variable name that returns data and results in the bytes that you want to store in
field.Notes
- In a variable length field, if (
position+length-1) is greater than the length offield, Progress pads the field with nulls before it performs the replacement.- In a fixed length field, if (
position+length-1) is greater than the length offield, Progress returns a run-time error. If (position+length-1) is less then the length offield, Progress pads the field with nulls so that it remains the same size.- If
position,length, orexpressionis equal to the Unknown value (?), thenfieldbecomes the Unknown value (?).- If
positionis less than 1, orlengthis less than 0, Progress generates a run-time error.See also
GET-BYTE function, LENGTH function, LENGTH statement, PUT-BYTE statement, RAW function
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |